package com.androidx.p013lv.base.p014db;

import com.androidx.p013lv.base.bean.AdBaseBean;
import com.androidx.p013lv.base.bean.AdInfoBean;
import com.androidx.p013lv.base.bean.NovelHistory;
import com.androidx.p013lv.base.bean.VideoHistory;
import java.util.Map;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

/* renamed from: com.androidx.lv.base.db.DaoSession */
public class DaoSession extends AbstractDaoSession {
    private final AdBaseBeanDao adBaseBeanDao = new AdBaseBeanDao(this.adBaseBeanDaoConfig, this);
    private final DaoConfig adBaseBeanDaoConfig;
    private final AdInfoBeanDao adInfoBeanDao = new AdInfoBeanDao(this.adInfoBeanDaoConfig, this);
    private final DaoConfig adInfoBeanDaoConfig;
    private final NovelHistoryDao novelHistoryDao = new NovelHistoryDao(this.novelHistoryDaoConfig, this);
    private final DaoConfig novelHistoryDaoConfig;
    private final VideoHistoryDao videoHistoryDao = new VideoHistoryDao(this.videoHistoryDaoConfig, this);
    private final DaoConfig videoHistoryDaoConfig;

    public DaoSession(Database database, IdentityScopeType identityScopeType, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> map) {
        super(database);
        DaoConfig clone = map.get(AdBaseBeanDao.class).clone();
        this.adBaseBeanDaoConfig = clone;
        clone.initIdentityScope(identityScopeType);
        DaoConfig clone2 = map.get(AdInfoBeanDao.class).clone();
        this.adInfoBeanDaoConfig = clone2;
        clone2.initIdentityScope(identityScopeType);
        DaoConfig clone3 = map.get(NovelHistoryDao.class).clone();
        this.novelHistoryDaoConfig = clone3;
        clone3.initIdentityScope(identityScopeType);
        DaoConfig clone4 = map.get(VideoHistoryDao.class).clone();
        this.videoHistoryDaoConfig = clone4;
        clone4.initIdentityScope(identityScopeType);
        registerDao(AdBaseBean.class, this.adBaseBeanDao);
        registerDao(AdInfoBean.class, this.adInfoBeanDao);
        registerDao(NovelHistory.class, this.novelHistoryDao);
        registerDao(VideoHistory.class, this.videoHistoryDao);
    }

    public void clear() {
        this.adBaseBeanDaoConfig.clearIdentityScope();
        this.adInfoBeanDaoConfig.clearIdentityScope();
        this.novelHistoryDaoConfig.clearIdentityScope();
        this.videoHistoryDaoConfig.clearIdentityScope();
    }

    public AdBaseBeanDao getAdBaseBeanDao() {
        return this.adBaseBeanDao;
    }

    public AdInfoBeanDao getAdInfoBeanDao() {
        return this.adInfoBeanDao;
    }

    public NovelHistoryDao getNovelHistoryDao() {
        return this.novelHistoryDao;
    }

    public VideoHistoryDao getVideoHistoryDao() {
        return this.videoHistoryDao;
    }
}
